﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.Equipment.Domain.Equipment
{
    /// <summary>
    /// 设备台账实体
    /// </summary>
    [SugarTable("DeviceLedger")]
    public class DeviceLedgerModel:BaseEntity
    {
        /// <summary>
        /// 资产编号
        /// </summary>
        [MaxLength(100)]
        public string AssetNumber{ get; set; }

        /// <summary>
        /// 设备序列号
        /// </summary>
        [MaxLength(100)]
        public string DeviceLedgerSerialNum { get; set; }

        /// <summary>
        /// 设备编码
        /// </summary>
        [MaxLength(100)]
        public string DeviceLedgerCode { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        [MaxLength(50)]
        public string DeviceLedgerName { get; set; }

        /// <summary>
        /// 设备状态
        /// 0:正常 1:维修中 2:已维修 3:已报废 4:闲置
        /// </summary>
        public int DeviceStatues { get; set; }

        /// <summary>
        /// 设备规格
        /// </summary>
        [MaxLength(100)]
        public string DeviceSpeciFication { get; set; }

        /// <summary>
        /// 设备型号
        /// </summary>
        [MaxLength(100)]
        public string DeviceType { get; set; }

        /// <summary>
        /// 设备品牌
        /// </summary>
        [MaxLength(50)]
        public string DeviceBrand { get; set; }

        /// <summary>
        /// 设备数量
        /// </summary>
        [MaxLength(5)]
        public int DeviceNum { get; set; }

        /// <summary>
        /// 生产日期
        /// </summary>
        public DateTime DeviceBeginTime { get; set; }

        /// <summary>
        /// 入场时间
        /// </summary>
        public DateTime DeviceEnterTime { get; set; }

        /// <summary>
        /// 供应商(外键)
        /// </summary>
        public long SupplierId { get; set; }

        /// <summary>
        /// 所属车间（外键）
        /// </summary>
        public long WorkShopId { get; set; }

        /// <summary>
        /// 位置
        /// </summary>
        [MaxLength(100)]
        public string Devicelocation { get; set; }

        /// <summary>
        /// 使用部门
        /// </summary>
        [MaxLength(50)]
        public string DeviceuseDepartments { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        [MaxLength(50)]
        public string DeviceHead { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(100)]
        public string DeviceRemark { get; set; }

        /// <summary>
        /// 设备类型（外键）
        /// </summary>
        public long DeviceTypeId { get; set; }
    }
}
